package service;

public class Student {
    private String name;//姓名
    private  String gender;//性别
    private  int age;//年龄
    private double score;//成绩
    private School school;
    public void goLesson1(){
        this.getSchool().goLesson();
        System.out.println(this.getName()+"正在学公共课");
    }
    public  void goLesson2(){
        this.getSchool().goLesson();
        System.out.println(this.getName()+"正在学专业课");
    }
    public void say(){
        System.out.println("我是学生"+this.getName());
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public double getScore() {
        return score;
    }

    public void setScore(double score) {
        this.score = score;
    }

    public School getSchool() {
        return school;
    }

    public void setSchool(School school) {
        this.school = school;
    }
}
